package com.dufang.thread04Yield;

/**
 * @ClassName:test
 * @Description 测试类-线程礼让yeild.尽量保证AB线程交替执行，但不能绝对保证。
 * @Author dufang
 * @Date 2025/7/7/007 6:58
 * @Version 1.0
 **/
public class test {
    public static void main(String[] args) {
        Thread01 t1=new Thread01();
        Thread01 t2=new Thread01();

        t1.setName("张三");
        t2.setName("李四");

        t1.start();
        t2.start();
    }


}
